package com.china08.yxyapi.service.mg;

import com.china08.yxyapi.entity.mg.user.YxyUserCenter;

public interface YxyUserCenterService {

    /**
     * 获取用户center
     * 
     * @param userId
     * @param role
     *            根据用户 ID 学校 ID 身份 来找到的用户 角色ID
     * @return
     */
    YxyUserCenter getYxUserCenter(String userId);

    void updYxUserCenterRes(YxyUserCenter center, String phase, String subject, String version, String subjectName,
            String phaseName, String versionName, String bookId, String semester, String semesterName);

    /**
     * 记录用户的浏览微课历史操作
     */
    void updYxUserCenterWeike(YxyUserCenter center, String phase, String subject, String stageName, String subjectName);

    void updYxUserCenterWeikeContent(YxyUserCenter center, String phase, String subject, String version,
            String subjectName, String phaseName, String versionName, String bookId, String semester,
            String semesterName);
}
